package com.first.module.acm.dao.impl;

import com.first.core.dao.impl.BaseDaoImpl;
import com.first.module.acm.dao.AppFunctionDao;
import com.first.module.acm.model.AppFunction;

public class AppFunctionDaoImpl extends BaseDaoImpl<AppFunction>
  implements AppFunctionDao
{
  public AppFunctionDaoImpl()
  {
    super(AppFunction.class);
  }

  public AppFunction getByKey(String key)
  {
    String hql = "from AppFunction af where af.funKey=?";
    return (AppFunction)findUnique(hql, new String[] { key });
  }
}

